export const mockChatList = [
    {
        id: '5f87c7d1-56a6-4c7a-8840-51f1b35e8f0d',
        title: 'd_17788952859',
        preview: '是的吗但是',
        time: '今天 15:49',
        avatar: 'https://picsum.photos/id/1005/100/100',
        highlighted: false
    },
    {
        id: '8c22e320-9e1a-42d6-9464-f4fe97e1b21c',
        title: 'lkun233的群组',
        preview: 'lkun233: 打杂***',
        time: '今天 15:48',
        avatar: 'https://picsum.photos/id/1012/100/100',
        highlighted: false
    },
    {
        id: 'c7452f9c-64bf-4a70-8a3e-a5c5ebf1c23b',
        title: '讯飞星火',
        preview: '"撕掰码洛伊" 是一种吵嘴的行为，...',
        time: '今天 15:48',
        isPrivate: true,
        type: 'ai-fire'
    },
    {
        id: 'e8fbd6f0-e180-41b6-92b8-37ed9e7da59f',
        title: 's18549921992',
        preview: '是行发***',
        time: '今天 15:48',
        type: 'default'
    },
    {
        id: '1d2e3f4a-5b6c-7d8e-9f0a-1b2c3d4e5f6a',
        title: 'lkun233的群组',
        preview: 'lkun233: 旺夫少',
        time: '今天 15:48',
        avatar: 'https://picsum.photos/id/1025/100/100'
    },
    {
        id: 'a1b2c3d4-e5f6-a7b8-c9d0-e1f2a3b4c5d6',
        title: '胶物圈 - 官方群聊',
        preview: 'lkun233: 我想要一个西西',
        time: '昨天 10:29',
        isOnline: true,
        type: 'music'
    },
    {
        id: 'f1e2d3c4-b5a6-9f8e-7d6c-5b4a3f2e1d0c',
        title: 'wwr642524773',
        preview: '2123',
        time: '昨天 10:14',
        type: 'default'
    },
    {
        id: '1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d',
        title: 'DeepSeekR1',
        preview: '你好! 请问有什么可以帮助你吗? 如果...',
        time: '昨天 10:14',
        isPrivate: true,
        type: 'ai-robot'
    }
];

export const getChatList = async () => {
    // Simulate API delay
    await new Promise(resolve => setTimeout(resolve, 500));
    return mockChatList;
};

export const getChatById = async (chatId) => {
    // Simulate API delay
    await new Promise(resolve => setTimeout(resolve, 300));
    return mockChatList.find(chat => chat.id === chatId);
}; 